[…] Mr. S. C. Hawtrey writes that when he knew the Moscow-Kazan Railway (then under British management) in 1913, it was a regular practice in Russia to paint the exterior of first class coaches blue, second class yellow, third class green, and fourth class, where it still survived, brown.
Source: wiktionary